func runtime.roundupsize
12 uses
runtime (current package)
lock_spinbit.go#L95: size := roundupsize(unsafe.Sizeof(mPadded{}), false) + gc.MallocHeaderSize
msize.go#L16: func roundupsize(size uintptr, noscan bool) (reqSize uintptr) {
slice.go#L214: capmem = roundupsize(uintptr(newcap), noscan)
slice.go#L220: capmem = roundupsize(uintptr(newcap)*goarch.PtrSize, noscan)
slice.go#L233: capmem = roundupsize(uintptr(newcap)<<shift, noscan)
slice.go#L241: capmem = roundupsize(capmem, noscan)
slice.go#L436: cap := roundupsize(uintptr(len), true)
slice.go#L482: capmem := roundupsize(lenmem, false)
slice.go#L498: capmem := roundupsize(lenmem, true)
slice.go#L530: newCap := int(roundupsize(uintptr(newLen)*et.Size_, !et.Pointers()) / et.Size_)
string.go#L331: cap := roundupsize(uintptr(size), true)
string.go#L346: mem := roundupsize(uintptr(size)*4, true)
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |